﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace edu.Model
{
    [Serializable]
    public class Node<TEntity> : Item, INode<TEntity>
        where TEntity : IItem
    {
        public virtual int? ParentId { get; set; }

        public virtual TEntity Parent { get; set; }

        public virtual ICollection<TEntity> Children { get; set; }

        public virtual string Path { get; set; }

        public virtual int? Level { get; set; }

        public virtual bool? Leaf { get; set; }


    }
}
